From cd732e2c661bd1ab594203c2a77d3644d74ce2d2 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 16 Sep 2008 03:59:02 +0000 Subject: [PATCH] Let routes honor selected character set in Garmins. --- garmin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/garmin.c b/garmin.c index b387790a8..98269fd7f 100644 --- a/garmin.c +++ b/garmin.c @@ -970,8 +970,8 @@ route_waypt_pr(const waypoint *wpt) d = rte->ident; for (s = wpt->shortname; *s; s++) { int c = *s; - if (isalpha(c)) c = toupper(c); - if (strchr(MILITANT_VALID_WAYPT_CHARS, c)) { + if (receiver_must_upper && isalpha(c)) c = toupper(c); + if (strchr(valid_waypt_char, c)) { *d++ = c; } } -- 2.30.2